home *** CD-ROM | disk | FTP | other *** search
- Path: gate.net!news-adm
- From: debmcd@isysfla.com
- Newsgroups: comp.lang.c++
- Subject: Need help with buttons!
- Date: 5 Jan 1996 22:57:41 GMT
- Organization: CyberGate, Inc.
- Message-ID: <4ckad5$13pg@news.gate.net>
- NNTP-Posting-Host: orlfl2-40.gate.net
- X-Newsreader: SPRY News 3.03 (SPRY, Inc.)
-
- I am writing a Windows multimedia program in Visual C++...
-
- In this program, there is a button that when pressed, will execute functions that take some time to complete. While this
- execution is occuring, I don't want the user to be able to press the button again. Does any one know of a way to lock out all
- mouse clicks until certain commands are finished executing????
-
- (I have tried changing to the WAIT icon and disabling, or graying, the button as well as the entire window...this does not help.
- When this was done, all mouse click-messages are sent to the queue and still processed when the previous execution is
- complete.) For example, if the button were to play an audio clip when pressed, and the user clicks the mouse over the button
- again, before the audio clip is finished, the audio clip would play again--and I don't want this!
-
- Please help!!
-
- Thank you!
-
- D. McDonough
-